<script language="javascript">
<!--
var a = [1,2,3,4,5,6,7,8];
alert(a.splice(4)+"\n"+a.splice(1,2)+"\n"+a.splice(1,1));
//-->
</script>
